<template>
  <div
    class="GoodsList">
    <good-list-item
      v-for="(item, index) in goods"
      :key="index"
      :item="item"></good-list-item>
  </div>
</template>

<script>
import GoodListItem from './GoodListItem.vue'
export default {
  name: 'GoodsList',
  components: {
    GoodListItem
  },
  props: {
    goods: Array,
    default () {
      return []
    }
  }
}
</script>

<style scoped>
.GoodsList {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 1px;
}
</style>>
